import React from 'react';
import { render } from '@testing-library/react';
import ProductListItem from "./ProductListItem";
import { ProductListItemInput } from './types';

const testItem: ProductListItemInput = {
  id: 'testItemId',
  name: 'Test Item',
  price: '1.99',
  quantity: '2',
};

test('item displays value properties, including total', () => {});

test('item shows inputs and buttons when clicked', () => {});

test('delete button calls delete handler', () => {});

test('cancel button cancels editing and deletes unsaved new item', () => {
  // Original values should be displayed

  // If the value is empty (besides the id), canceling should just delete the item
});

test('save button calls update handler with new values', () => {});
